
export class CreateCheckInSettingInput_Rules {
  constructor() {
    this.beforeLesson = [
      { required: true, message: '时间设置不能为空', trigger: 'blur' }
    ];
    this.afterLesson = [
      { required: true, message: '时间设置不能为空', trigger: 'blur' }
    ];
    this.beforeLessonTimeTypeCode = [
      { required: true, message: '请选择时间类型', trigger: 'change' }
    ];
    this.afterLessonTimeTypeCode = [
      { required: true, message: '请选择时间类型', trigger: 'change' }
    ];
  }
}

// 更新签到记录
export class UpdateCheckInLogInput_Rules {
  constructor() {
    this.checkInStatusCode = [
      { required: true, message: '请选择到课状态', trigger: 'change' }
    ];
  }
}

// 消息中心
// 词条
export class AddWordInput_Rules {
  constructor() {
    this.name = [
      { required: true, message: '请输入词条名称', trigger: 'blur' }
    ];
    this.wordPoolTypeCode = [
      { required: true, message: '请选择词库类型', trigger: 'change' }
    ];
    this.description = [
      { required: true, message: '请输入内容', trigger: 'blur' }
    ];
    this.genderCode = [
      { required: true, message: '请选择使用性别', trigger: 'change' }
    ];
  }
}

// 模板管理
export class AddTemplate_Rules {
  constructor() {
    this.name = [
      { required: true, message: '请输入模板名称', trigger: 'blur' }
    ];
    this.messageTemplateTypeCode = [
      { required: true, message: '请选择模板类型', trigger: 'change' }
    ];
    // this.messageTemplateH5StyleId = [
    //   { required: true, message: '请选择H5模板类型', trigger: 'change' }
    // ];
    // this.messageTemplateTextStyleId = [
    //   { required: true, message: '请选择纯文本模板类型', trigger: 'change' }
    // ];
  }
}

export class BalanceWarningSettingInput_Rules {
  constructor() {
    this.remainClassPeriod = [
      { required: true, message: '请输入剩余课时', trigger: 'blur' }
    ];
    this.remainDay = [
      { required: true, message: '请输入剩余天数', trigger: 'blur' }
    ];
  }
}
